package com.qst.survey.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Data;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

/**
 * @Date: 2021/3/18 15:41
 * @Description: 枚举类型映射
 */

public enum TypeEnum {
    食物(1,"食物"),
    娱乐(2,"娱乐"),
    互联网(3,"互联网"),
    商业(4,"商业"),
    体育(5,"体育"),
    少儿(6,"少儿"),
    媒体(7,"媒体"),
    ;
    @EnumValue
    private Integer type;
    private String msg;

    TypeEnum(Integer type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    TypeEnum(Integer type) {
        this.type = type;
    }
    TypeEnum(String type) {
        this.type = Integer.valueOf(type);
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
